<!DOCTYPE html PUBLIC 
	"-//W3C//DTD XHTML 1.1 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	
<%@taglib prefix="s" uri="/struts-tags" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>Twitter Users</title>
	<s:head />
	<script type="text/javascript">
		$(document).ready(function() {
			
		} );
	</script>
</head>
<body>
	<h4 id="pageTitle">
		Twitter Users
	</h4> 
	
	<div id="buttonBar">
		<input type="button" value="Add Twitter User" onclick="window.location.href='<s:url action="addtwitteruser" />';" />
	</div>
	
	<table id="twitterUserlist" border="0" cellspacing="0" cellpadding="0" width="1024px">
	<thead>
		<tr>
			
			<th width="100">
				Screen Name
			</th>
			<th width="100">
				User Name
			</th>
			<th width="100">
				Avatar Url
			</th>				
			<th width="100">
				Is CBC Account
			</th>

		</tr>
	</thead>
	<tbody>
		<s:iterator value="twitterUserList">
		<tr>
			<td width="20">
				<s:property value="screenName" />
			</td>
			<td>
				<s:property value="userName" />
			</td>
			<td>
				<s:property value="avatarURL" />
			</td>
			<td>
				<s:url var="url" action="updatetwitteruser">
					<s:param name="selectedTwitterUser">
						<s:property value="screenName" />
					</s:param>
				</s:url>
				<s:a href="%{url}" cssClass="button" > 
					<s:if test="%{cbcAccount}">
						Yes
					</s:if>
					<s:else>
						No
					</s:else>
				</s:a>
			</td>

		</tr>
	</s:iterator>
	</tbody>
	</table>
</body>
</html>
